const fs = require('fs');
const software_version = JSON.parse(fs.readFileSync('package.json')).version;
module.exports = class extends think.kms.center {
  async indexAction() {
    this.meta_title = '首页';
    this.active = ['/', '/index', 'index.html'];
    this.assign({
      menus: this.menu,
      'software_version': software_version
    });
    return this.display();
  }

  async mainAction() {
    this.title = '系统信息';
    this.assign({
      title: '系统信息',
      alert: {
        title: '',
        content: '哈哈哈',
        type: 'danger'
      }
    });
    return this.display();
  }
};
